<div class="title">
  <p>日志（<%= @valleyer.articles.length %>）</p>
  <%= link_to "查看更多",
    document_url(:id => @valleyer.id,
    :cmd => :logs_index),
    :target => :_blank
%>
</div>
<div class="message">
  <% if @valleyer.articles %>
    <% @valleyer.numerary_articles.each do |article| %>
      <div class="monomer">
        <div class="bar">
          <%= link_to truncate("#{article.title}", :length => 10),
            show_log_url(article),
            :class => :contentitle,
            :title => article.title,
            :target => :_blanck
        %>
          <p class="time"><%= article.created_at.strftime("%Y-%m-%d") %></p>
        </div>
        <div class="mincontent">
          <p>
            <%= truncate("#{strip_tags(article.content)}", :length => 100) %>
            <%= link_to "更多",
              show_log_url(article),
              :target => :_blanck
          %>
          </p>
        </div>
        <!--<div class="picandcom">
          <div class="pic"><%= image_tag('valleyer/grzy_center2.jpg') %></div>
        </div>-->
        <div class="comments">
          <p>阅读(<%= article.browse_records_count %>)</p>
          <p class="review">评论(<%= article.post_sessions.length %>)</p>
        </div>
      </div>
    <% end %>
  <% else %>
    <div class="monomer">
      <div class="bar">
        <a class="contentitle" href="javascript:;">...</a>
        <p class="time">...</p>
      </div>
      <div class="mincontent"><p>...<a href="javascript:;">更多</a></p></div>
      <!--<div class="picandcom">
        <div class="pic"><%= image_tag('valleyer/grzy_center2.jpg') %></div>
      </div>-->
      <div class="comments"><a href="javascript:;">阅读(...)</a><a href="javascript:;">评论(...)</a></div>
    </div>
  <% end %>
</div>
